﻿using System;
using System.Collections.Generic;
using Equation.Enterprise.Framework.Domain.Model;

namespace Equation.Enterprise.Tests.Framework.Domain.Model
{
    [Serializable]
    public class Order : Entity
    {
        public DateTime OrderDate { get; set; }
        public IList<Product> Products { get; set; }

        public Order(DateTime orderDate) : this()
        {
            OrderDate = orderDate;
        }

        public Order()
        {
            Products = new List<Product>();
        }
    }
}
